package org.huyue.huyuexia.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserFollowMapper {


    @Insert("insert into user_follows(follower_id,following_id) values(#{followerId},#{followingId})")
    void insertUserFollow(int followerId, int followingId);

    @Select("select * from user_follows where following_id=#{followingId} and follower_id=#{userId}")
    int selectUserFollowCount(Integer userId,Integer followingId);
}
